import React from "react";
import styles from "./user.module.css";
function Index() {
  let token = localStorage.getItem("token");
  let pic = localStorage.getItem("pic");
  let user = localStorage.getItem("user");
  return (
    <div>
      {token ? (
        <div className={styles.bob}>
          <img src={pic} alt="" className={styles.imgs} />
          <p className={styles.sp}>{user}</p>
        </div>
      ) : (
        <p>未登录去登录</p>
      )}
    </div>
  );
}

export default Index;
